Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: constraint operations optional attribute types #245

Merged
merged 10 commits into from
Jun 2, 2024

Conversation

Josuto
Copy link
Owner

@Josuto Josuto commented Jun 1, 2024

What is the purpose of this pull request?

Put an "X" next to item:

[ ] Documentation update
[x] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make?

The types of several operation optional attributes are currently too wide (i.e., any). We want to constraint them to improve DevExp and thus cause TS errors when invalid values are provided.

Which issue (if any) does this pull request address?

Is there anything you'd like reviewers to focus on?

Josuto added 10 commits May 21, 2024 00:18
Also modified ESLint config.
Also unpublish some domain model types to avoid API maintenance responsibilties.
The option connection is of no longer use in CRUD operations; only in runInTransaction.
This operation now returns an arbitrary existing entity (if any)
FindAllOptions.sortBy and filters attribute from FindOneOptions, FindAllOptions, and DeleteAllOptions used to be of type 'any' . Now devs will experience TS errors when they do not provide valid values.
@Josuto Josuto changed the base branch from main to canary June 2, 2024 12:03
@Josuto Josuto merged commit e533c93 into canary Jun 2, 2024
10 checks passed
@Josuto Josuto deleted the constraint_ops_optional_attribute_types branch June 2, 2024 12:21
@Josuto Josuto changed the title Constraint operations optional attribute types fix!: constraint operations optional attribute types Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant